﻿using System.Web;
using System.Web.Optimization;

namespace SF.WebClient
{
    public class BundleConfig
    {
        // 有关绑定的详细信息，请访问 http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            //jquery 及其 扩展
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery/jquery-1.11.0.min.js", "~/Scripts/jquery-extensions/jquery.jdirk.js"));

            //总样式
            bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/site.css"));

            #region jquery-easyui

            bundles.Add(new StyleBundle("~/Content/jquery-easyuicss").Include(
                      "~/Scripts/jquery-easyui/jquery-easyui-1.4.3/themes/default/easyui.css",
                      "~/Scripts/jquery-easyui/jquery-easyui-1.4.3/themes/icon.css"));

            bundles.Add(new ScriptBundle("~/bundles/jquery-easyuijs").Include(
                        "~/Scripts/jquery-easyui/jquery-easyui-1.4.3/jquery.easyui.min.js", 
                        "~/Scripts/jquery-easyui/jquery-easyui-1.4.3/locale/easyui-lang-zh_CN.js"));

            #endregion

            bundles.Add(new ScriptBundle("~/bundles/test1").Include(
                        "~/Scripts/special/PortalTestIndex.js"));

            BundleTable.EnableOptimizations = true;
        }
    }
}
